A Framework for Understanding The Portability of C Types
نویسنده
چکیده
The C standard does not specify the memory layouts of types, opening the door for portability problems that arise from discrepancies in how various platforms choose to represent types in memory. I report on the design and implementation of a framework that provides automated help for finding and understanding these discrepancies. A dynamic analysis gathers memory layout constraints on types. An offline analysis checks the truth of these constraints against two abstract platform descriptions. The host description models the platform on which the program has been developed, tested, and assumed to work as intended. The target description models the platform on which the program is to be (perhaps hypothetically) ported. A warning is issued when a type may be used in a way that violates its associated layout constraints on the target platform but not on the host. I envision the framework being used in two key ways: to find type-portability bugs in C programs, by checking the program’s constraints against platform descriptions that model concrete target platforms of interest, and to understand the type-portability of programs, by checking constraints against many possibly unrealistic descriptions and observing the platform features that cause the constraints to become false. This process helps programmers discover and understand portability boundaries: what problematic assumptions the code makes, the locations where these assumptions arise, and consequently the kinds of platforms on which the program behaves as intended.
منابع مشابه
Developing a framework for studying and evaluating the types of psychological contracts in the context of relationship marketing
Nowadays, belief in the criteria and conditions of interactions with an organization to promote customer relationships is somehow tied to the organizational performance, and its final goal is of great importance. In the literature on organizational behavior, this belief is defined as the “psychological contract”. The intention of this mixed research is to identify and discover the contents of p...
متن کاملTEXTUAL AND INTER-TEXTUAL ANALYSES OF IRANIAN EFL UNDERGRADUATES’ TYPES OF ENGLISH READING TOWARDS DEVELOPING A CAREFUL READING FRAMEWORK
This study investigated textual and inter-textual reading of a group of Iranian EFL undergraduates’ careful English reading types. In this research, Khalifa and Weir’s (2009) reading framework was used to propose a more inclusive aspect of a careful reading framework and the reading construct for instructional and assessment goals. The participants of this study were B.A. students of English Tr...
متن کاملUniversity Business Model Framework
The purpose of this study is to provide a framework for the university business model as a solution for universities to cooperate with businesses. The method of the present study is a qualitative case study and the research method of document analysis, focal groups have been used to collect data. In the documentation section, 60 documents related to academic business models were selected and an...
متن کاملReading and Understanding Continuity and Change in Spatial Organization of Local Houses (Case study: sabzevar city)
Today, there are a few dozens of historical index houses in the city Sabzevar. Reviews show that up until now, despite the presence of their special characteristics, variety and role, there have not been comprehensive studies about them but through the presence of valuable samples from various historical periods (Teymouri, Safavid, Qajar, Pahlavi), their exposure to destruction through changing...
متن کاملUnderstanding Core Native Human Effective Components in Crisis Management Is a Step Forward Towards Increasing Resiliency and Decreasing Stress Especially in Sudden Crises as a Sustainable Development Framework
Background: In different crises without any exception, especially sudden emergencies, the role of Human Effective Components (HECs), Native Human Effective Components (NHECs) (belonging to a specific space and location), and especially Core Native Human Effective Components (CNHECs); and among CNHECs, level of management skills, ignorance, and manager’s mind bandwidth are of vital importance in...
متن کامل